package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(100)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30)"`
}
type RoleNode struct {
	gorm.Model
	Nid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Order struct {
	gorm.Model
	OrderName   string `gorm:"type:varchar(30)"`
	OrderPrice  string `gorm:"type:varchar(30)"`
	OrderStatus string `gorm:"type:varchar(30)"`
}
type OrderEs struct {
	gorm.Model
	EsNum   string `gorm:"type:varchar(30)"`
	EsMoney string `gorm:"type:varchar(30)"`
	EsInfo  string `gorm:"type:varchar(40)"`
}
type OrderEsList struct {
	OrderId     int    `gorm:"type:int"`
	OrderName   string `gorm:"type:varchar(30)"`
	OrderPrice  string `gorm:"type:varchar(30)"`
	OrderStatus string `gorm:"type:varchar(30)"`
	EsNum       string `gorm:"type:varchar(30)"`
	EsMoney     string `gorm:"type:varchar(30)"`
	EsInfo      string `gorm:"type:varchar(40)"`
}
